const { createDefaultPreset } = require("ts-jest");
const tsJestTransformCfg = createDefaultPreset().transform;

/** @type {import("jest").Config} **/
module.exports = {
  preset: "ts-jest",
  testEnvironment: "node",
  transform: {
    ...tsJestTransformCfg,
  },
  // 确保包含 ts 文件
  moduleFileExtensions: ["ts", "js", "json", "node"],
  testMatch: ["**/**/*.test.(ts|js)"],
};
